# Embedded python script
from org.csstudio.display.builder.runtime.script import PVUtil
import os
path = "C:\Users\controlgroup\phoebus-workspace"
os.chdir(path)
from NCL.script.config import get_code

data = []
result = PVUtil.getDoubleArray(pvs[0])
for i in result:
    if 0 == int(i):
        break
    data.append(get_code(int(i)))
widget.setValue(data)